﻿@model FlyingClub.Models.Flight

@{
    ViewBag.Title = "Validation de vol";

    System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("fr-FR");
}

<h1>@ViewBag.Title</h1>

<table class="flights-details-tab">
    <tbody>
        <tr>
            <td colspan="2" style="text-align : center;">Le vol #@Html.DisplayFor(model => model.ID) a été validé</td>
        </tr>
        <tr>
            <td>Date de départ :</td>
            <td>@Model.DepartureDate.ToString("dddd dd MMMM yyyy à HH:mm", culture)</td>
        </tr>
        <tr>
            <td>Pilote :</td>
            <td>@Html.DisplayFor(model => model.Pilot.Firstname)</td>
        </tr>
        <tr>
            <td>Numéro de l'avion :</td>
            <td>#@Html.DisplayFor(model => model.Plane.Name) @Html.DisplayFor(model => model.Plane.Number)</td>
        </tr>
    </tbody>
</table>

@Html.HiddenFor(model => model.TransactionID)
@Html.HiddenFor(model => model.Validate)

@using (Html.BeginForm())
{
    <p>
        <input type="submit" value="Valider" />
        @Html.ActionLink("Retour à l'index", "Index")
    </p>
}
